package cn.jiyun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Fay
 * @date 2022/6/22&11:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {
    //自增主键
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    //映射数据库中字段
    @TableField("nick_name")
    private String nickName;
    private Integer age;
    private String email;
}
